import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'tok'
})
export class TokPipe implements PipeTransform {

  transform(value: number, ...args: unknown[]): unknown {
    return this.toK(value);
  }
  toK(value:number){
    return value/1000 + "k"
  }

}
